<?php require_once("../includes/initializeSession.php"); ?>
<?php require_once("../includes/secure.php"); ?>
<?php
	
require("agentClass.php"); 
$agent = new agent();
	#----- call the appropriate function ------#
if( isset($_POST ['oper']) )
{
if($_POST ['oper']=="view")
$agent->viewAgents();
else if($_POST ['oper']=="edit")
$agent->editAgent();
else if($_POST ['oper']=="add")
$agent->addAgent();
else if($_POST ['oper']=="del")
$agent->deleteAgent();
else if($_POST ['oper']=="getMetriaAgent")
$agent->getMetriaAgent();
}

	#----- call the appropriate  function ------#



?>